<template>
  <div>
    <a-card :bordered="false">
      <slot />
      <!-- <quotation-header /> -->
      <a-tabs v-model="tabActiveKey">
        <a-tab-pane key="1" tab="用料详情">
          <material @onPriceChange="handleChangePrice" />
        </a-tab-pane>

        <a-tab-pane key="2" tab="工艺单详情">
          <craft :biz-scene="Number($route.query.bizScene)" />
        </a-tab-pane>
      </a-tabs>
    </a-card>
  </div>
</template>

<script>
import Material from './Material'
import Craft from '../Craft/index'

export default {
  components: {
    Material,
    Craft
  },
  data() {
    return {
      tabActiveKey: '1'
    }
  },
  methods: {
    handleChangePrice(val) {
      this.$emit('onPriceChange', val)
    }
  }
}
</script>

<style lang="less" module></style>
